﻿using CleanArchitecture.Core.SharedKernel;
using System;

namespace CleanArchitecture.Infrastructure.Entities.Business
{
    public static class ActiveLogName
    {
        //根据业务类型添加

        //文章/新闻浏览行为
        public static string VisitNewsPage { get => "VisitNewsPage"; }
        public static string NewsPageLike { get => "NewsPageLike"; }
        //博客浏览行为
        public static string VisitBlogPage { get => "VisitBlogPage"; }
        //博客点赞行为
        public static string BlogPageLike { get => "BlogPageLike"; }

        public static string SearchNewsKeyWord { get => "SearchNewsKeyword"; }

        public static string SearchBlogKeyWord { get => "SearchBlogKeyWord"; }

        public static string CustomerLogin { get => "CustomerLogin"; }

    }
    /// <summary>
    /// 业务日志
    /// </summary>
    public partial class ActiveLog : BaseEntity
    {
        /// <summary>
        /// Gets or sets the Activename
        /// </summary>
        public string ActiveName { get; set; }
        /// <summary>
        /// Gets or sets the Entity Id of the Active business
        /// </summary>
        public int EntityId { get; set; }
        /// <summary>
        /// Gets or sets the EntityName
        /// </summary>
        public string EntityName { get; set; }
        /// <summary>
        /// CustomerId 预留
        /// </summary>
        public int? CustomerId { get; set; }
        /// <summary>
        /// Gets or set the ActiveLog detail
        /// </summary>
        public string Detail { get; set; }

        /// <summary>
        /// Gets or sets the IpAddress
        /// </summary>
        public string IpAddress { get; set; }

        public DateTime CreatedOnTimeUtc { get; set; }

        public int Month { get; set; }

        public int Year { get; set; }
    }
}
